import request from "@/utils/request";

// 查询月报项目详情列表
export function listBizMonthDeptDetials(query) {
  return request({
    url: "/biz/bizMonthDeptDetials/list",
    method: "get",
    params: query,
  });
}

// 查询月报项目详情详细
export function getBizMonthDeptDetials(id) {
  return request({
    url: "/biz/bizMonthDeptDetials/" + id,
    method: "get",
  });
}

// 新增月报项目详情
export function addBizMonthDeptDetials(data) {
  return request({
    url: "/biz/bizMonthDeptDetials",
    method: "post",
    data: data,
  });
}

export function batchUpdate(data) {
  return request({
    url: "/biz/bizMonthDeptDetials/batchUpdate",
    method: "post",
    data: data,
  });
}

// 修改月报项目详情
export function updateBizMonthDeptDetials(data) {
  return request({
    url: "/biz/bizMonthDeptDetials",
    method: "put",
    data: data,
  });
}

// 删除月报项目详情
export function delBizMonthDeptDetials(id) {
  return request({
    url: "/biz/bizMonthDeptDetials/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizMonthDeptDetials/findMaxSort",
    method: "get",
  });
}
// 导出月报项目详情
export function exportBizMonthDeptDetials(query) {
  return request({
    url: "/biz/bizMonthDeptDetials/export",
    method: "get",
    params: query,
  });
}
